_Show Reminders List
(
38
actions, 34 KB)
0 Get Dates from
[Shortcut Input]
»
1
2
4
5
6
18
1 If
[0 Dates
{"Date Style":"Relative","WFISO8601IncludeTime":false,"Time Style":"None","Relative Style":"Short"}
]
has any value
ConditionalActionString
:
2 Run Shortcut
Get Undone Actions Items
»
Input
:
[0 Dates]
Workflow
:
{ "workflowIdentifier": "893E7F57-FB09-48D9-AB3E-96896DD6E6BD", "workflowName": "Get Undone Actions Items", "isSelf": false }
3 Set Variable
reminders
to
[2 Shortcut Result]
4 Format Date
[0 Dates]
»
10
DateFormatStyle
:
Relative
TimeFormatStyle
:
None
RelativeDateFormatStyle
:
Short
5 Format Date
[0 Dates]
»
7
DateFormatStyle
:
Custom
TimeFormatStyle
:
None
DateFormat
:
E
RelativeDateFormatStyle
:
Short
6 Format Date
[0 Dates]
»
DateFormatStyle
:
Custom
TimeFormatStyle
:
None
DateFormat
:
MMM d
RelativeDateFormatStyle
:
Short
7 Text-Case > TextCaseIntent »
10
text
:
[5 Formatted Date]
,
[6 Formatted Date]
format
:
smallCaps
ShowWhenRun
:
false
8 DataJar > GetValueIntent »
10
keyPath
:
Text Divider
9 Count Items in
[reminders]
»
10 Text
📅
[4 Formatted Date]
(
[7 Formatted Text]
)
[8 Value]
👉
[9 Count]
個待辦事項
[8 Value]
11 Otherwise ▵
1
12 Find Reminders »
ContentItemSortProperty
:
Title
ContentItemSortOrder
:
A to Z
ContentItemFilter
:
• All the following are true List is
[Shortcut Input]
Is Not Completed
13 Set Variable
reminders
to
[12 Reminders]
14 Text
👇
[Shortcut Input]
👇
15 End If »
30
16 If
[reminders]
has any value
17 Repeat with Each in
[reminders]
18 If
[0 Dates]
has any value
19 Dictionary
➔ mappingDict
»
21
{ "High": "!!!", "Medium": "!!", "Low": "!", "None": "!?" }
20 Get
Priority
of Reminders
[Repeat Item]
»
21 Get Dictionary Value for
[20 Priority]
in
[19 mappingDict]
»
22 Text
[21 Dictionary Value]
[Repeat Item]
23 Otherwise
24 Get Text from
[Repeat Item]
25 End If »
26 Set Dictionary Value for
[25 If Result]
to
[Repeat Item]
in
[dict]
»
27 Set Variable
dict
to
[26 Dictionary]
28 End Repeat with Each ▵
17
29 Filter Files
[dict
’s Keys
]
»
ContentItemSortProperty
:
Name
ContentItemSortOrder
:
Z to A
30 Choose from List
[29 Files]
»
ChooseFromListActionPrompt
:
[15 If Result]
ChooseFromListActionSelectMultiple
:
true
ChooseFromListActionSelectAll
:
false
31 Repeat with Each in
[30 Chosen Item
’s Name
]
32 Get Dictionary Value for
[Repeat Item]
in
[dict]
»
33 Filter Files
[reminders]
»
34
35
ContentItemLimitEnabled
:
true
ContentItemLimitNumber
:
1
ContentItemFilter
:
Name is
[32 Dictionary Value]
34
Set
Is Completed
of Reminder
[33 Files]
ReminderContentItemIsCompleted
:
1
35 Run Shortcut
Feedback for Brain Dumping
Input
:
[33 Files]
Workflow
:
{ "workflowIdentifier": "A431180D-71BB-4AD8-8F8D-073B568D7CCC", "workflowName": "Feedback for Brain Dumping", "isSelf": false }
36 End Repeat with Each
37 End If ▵
16